<template>
  <div id="app">
    <div class="main">
      <!--导航栏-->
      <div class="header">
        <Header></Header>
      </div>
      <div class="nav">
        <Nav></Nav>
      </div>
      <div class="content" style="width: 100%;">
        <div class="clearfix w1200">
          <div class="mt20">
            <a href="">
              <img src="../assets/course/img_top.jpg" width="1200" height="60"></a></div>
          <!--面包屑 start-->
          <div class="crumbs"><a href="/">嘉兴培训通</a><i>&gt;</i><a class=" orange" href="/">嘉兴培训</a></div>
          <!--面包屑 end-->
          <!--筛选条件 start-->
          <div class="wkg-cat-rb">
            <div class="b7 clearfix">
              <div class="wkg-filter" style="padding: 0 7px;">

                <div id="JS_fliterTable" class="wkg-filterTable clearfix">
                  <dl class="clearfix wkg-selected">
                    <dt>您已选择：</dt>
                    <dd>


                      <a class="clear" rel="nofollow" href="/jiaxing/kecheng">清空</a></dd>
                  </dl>
                  <dl class="clearfix">
                    <dt>大类：</dt>
                    <dd>
                      <div class="lists auto">
                        <table>
                          <tbody>
                          <tr>
                            <td>

                              <a class="buxian  scur" href="/jiaxing/kecheng"><span>不限</span></a>
                              <a href="/jiaxing/kcliuxuekaoshi">
                                <span>语言·留学</span>
                              </a>
                              <a href="/jiaxing/kcxueqian">
                                <span>婴幼儿教育</span>
                              </a>
                              <a href="/jiaxing/kczhongxiaoxue">
                                <span>基础教育</span>
                              </a>
                              <a href="/jiaxing/kcxuelijiaoyu">
                                <span>学历教育</span>
                              </a>
                              <a href="/jiaxing/kczigerenzheng">
                                <span>资格考试</span>
                              </a>
                              <a href="/jiaxing/kczhiyejineng">
                                <span>职业技能</span>
                              </a>
                              <a href="/jiaxing/kcit">
                                <span>IT培训</span>
                              </a>
                              <a href="/jiaxing/kcguanli">
                                <span>管理培训</span>
                              </a>
                              <a href="/jiaxing/kcxingqusuyang">
                                <span>兴趣/素养</span>
                              </a>
                              <a href="/jiaxing/kcwentiyishu">
                                <span>文体艺术</span>
                              </a>
                              <a href="/jiaxing/kccanyin">
                                <span>餐饮培训</span>
                              </a>
                            </td>

                          </tr>
                          </tbody>
                        </table>
                      </div>
                    </dd>
                  </dl>
                  <dl class="clearfix">
                    <dt>区域：</dt>
                    <dd>
                      <div class="lists">
                        <a class="buxian  scur" href="/jiaxing/kecheng">
                          <span>不限</span>
                        </a>
                        <a href="/jiaxing/kc-c_212">
                          <span>南湖新区</span>
                        </a>
                        <a href="/jiaxing/kc-c_213">
                          <span>秀洲新区</span>
                        </a>
                        <a href="/jiaxing/kc-c_214">
                          <span>中心城区</span>
                        </a>
                        <a href="/jiaxing/kc-c_215">
                          <span>经济开发区</span>
                        </a>
                        <a href="/jiaxing/kc-c_216">
                          <span>运河新区</span>
                        </a>
                        <a href="/jiaxing/kc-c_217">
                          <span>国际商务区</span>
                        </a>
                        <a href="/jiaxing/kc-c_223">
                          <span>其他</span>
                        </a>
                      </div>
                    </dd>
                  </dl>
                </div>
              </div>
            </div>
            <div class="toggle">
              <div class="bar"></div>
            </div>
          </div>
          <!--筛选条件 end-->
          <div class="main_content" style="width: 1200px; height: 900px;">
            <!--course-->
            <div class="course_main" style="float:left;width: 870px;height: 500px;">
              <div class="train_tab clearfix">
                <a href="/">
                  <span class="select">综合</span></a>
                <i>|</i>
                <a href="">
                  <span>人气</span></a>
                <i>|</i>
                <a href="">
                  <span>最新</span></a>
                <div class="wkg-sort1">
                  <a href="/" class="orange sortScreen"><i class="tab orgtab1"></i>课程</a>
                  <a href="/" class="sortScreen"><i class="tab tab2"></i>机构</a>
                  <a href="#" class="sortScreen showkaifa"><i class="tab tab3"></i>地图</a>
                </div>
              </div>
              <div style="" >
                <el-col v-for="(data,index) in tableData" :key="data.id" style="width: 870px;margin-top: 5px" :span="8">
                  <el-card  style="height: 130px;" shadow="hover">
                    <div class="img_content" style="float: left;width: 150px;height: 80px">
                      <img :src="'static/Course_img/'+data.img" alt="">
                    </div>
                    <div style="float: left;width: 350px;margin-left: 10px;">
                      <span style="color: #666666;font-size: 16px;font-weight: bold">{{data.title}}</span>
                    </div>
                    <div style="float: right">
                      <span style="color:#333;">{{data.school}}  &nbsp;</span>
                    </div>
                    <br>
                    <br>
                    <div style="float: right">
                      <span style="color: #666666;font-size: 1px"> | {{data.adress}} &nbsp;</span>
                    </div>
                    <div style="float: right">
                      <span style="color:#666666;font-size: 1px">联系电话：{{data.phone}} &nbsp;</span>
                    </div>
                  </el-card>
                </el-col>
              </div>
            </div>
            <!--侧边栏-->
            <div class="right_main" style="float: right;width: 300px;height: 500px;">
              <div class="mh_baoming_box">
                <div class="jg_xk">
                  <a href="/" class="jg_xkhelp" target="_blank"><i class="i"></i>帮我选课</a>
                </div>
                <div class="mh_rmkc">
                  <div class="mh_rmkc_title">
                    <span>热门课程</span>
                  </div>
                  <dl class="mt40">
                    <dt><a href="" target="_blank"><img
                      src="https://img5.pxto.com.cn/content_70_56f9f9bdda599.jpg" width="175" height="122"></a></dt>
                    <dd><p class="f12"><strong><a href="" class="gray1"
                                                  target="_blank">成都恒企会计财务会计学段培训</a></strong></p>
                      <p><a href="" target="_blank" class="gray2 12">恒企会计培训学校</a>
                      </p></dd>
                  </dl>
                  <dl class="mt40">
                    <dt><a href="" target="_blank"><img
                      src="https://img5.pxto.com.cn/content_70_570db7f637cc4.jpg" width="175" height="122"></a></dt>
                    <dd><p class="f12"><strong><a href="" class="gray1"
                                                  target="_blank">成都健身教练国家职业资格认证</a></strong></p>
                      <p><a href="" target="_blank" class="gray2 12">成都德西健身学校</a>
                      </p></dd>
                  </dl>
                  <dl class="mt40">
                    <dt><a href="" target="_blank"><img
                      src="https://img5.pxto.com.cn/content_70_570dba2719fbe.jpg" width="175" height="122"></a></dt>
                    <dd><p class="f12"><strong><a href="" class="gray1"
                                                  target="_blank">DPT高级私人健身教练课程</a></strong></p>
                      <p><a href="" target="_blank" class="gray2 12">成都德西健身学校</a>
                      </p></dd>
                  </dl>
                  <dl class="mt40">
                    <dt><a href="" target="_blank"><img
                      src="https://img5.pxto.com.cn/content_70_57845f6ec197f.jpg" width="175" height="122"></a></dt>
                    <dd><p class="f12"><strong><a href="" class="gray1"
                                                  target="_blank">DAT高级团课教练课程</a></strong></p>
                      <p><a href="" target="_blank" class="gray2 12">成都德西健身学校</a>
                      </p></dd>
                  </dl>
                </div>
              </div>
            </div>
          </div>
          <!--分页-->
          <div style="float: left;">
            <el-pagination
              layout="prev, pager, next"
              :total="50">
            </el-pagination>
          </div>
          <!--大家都在看 end-->
          <div class="trainMore">
            没有找到适合课程？让专属顾问帮您甄选！<a href="/" class="more_a" target="_blank">帮我选课</a>
          </div>
          <div id="trainSearch2 ">
            <div class="clearfix trainSearch2 none">
              <div class="alisearch">
                <a href="#">课程</a><span></span><a href="#">机构</a><span></span><a href="#">老师</a>
              </div>
              <div class="ali-search2">
                <div class="form2">
                  <input id="Text1" class="search_txt2" maxlength="20" value="输在此输入您想查找的关键字"
                         onblur="if ( value ==''){ value='输在此输入您想查找的关键字'}"
                         onfocus="if (value =='输在此输入您想查找的关键字'){value =''}">
                  <input type="button" class="alisearch-submit2" value="搜 索">
                </div>
              </div>
              <div class="trainSearch_div2"><a href="#" class="trainSearch_submit2">地图搜索</a></div>
            </div>
          </div>
          <div class="trainClass">
            <div class="trainClass_div">
              <p class="trainC_title">频道介绍</p>培训通嘉兴频道免费为您提供嘉兴培训,嘉兴班,嘉兴学校,嘉兴课程等信息查询，在此有丰富的嘉兴培训信息供您对比选择，并为学员提供嘉兴培训咨询服务。
            </div>
          </div>
          <div class="trainClass  mb40">
            <p class="trainC_title"> - 热门城市</p>
            <div class="trainClass_div">
              <a href="/">北京</a>
              <a href="/">上海</a>
              <a href="/">天津</a>
              <a href="/">重庆</a>
              <a href="/">广州</a>
              <a href="/">深圳</a>
              <a href="/">成都</a>
              <a href="/">武汉</a>
              <a href="/">郑州</a>
              <a href="/">杭州</a>
              <a href="/">合肥</a>
              <a href="/">济南</a>
              <a href="/">南京</a>
              <a href="/">苏州</a>
              <a href="/">沈阳</a>
              <a href="/">长春</a>
              <a href="/">石家庄</a>
              <a href="/">西安</a>
              <a href="/">长沙</a>
              <a href="/">哈尔滨</a>
              <a href="/">大连</a>
              <a href="/">南昌</a>
              <a href="/">昆明</a>
              <a href="/">呼市</a>
              <a href="/">厦门</a>
              <a href="">宁波</a>
              <a href="">南宁</a>
              <a href="">太原</a>
            </div>
          </div>
        </div>
      </div>
      <!--底部-->
      <div class="footer">
        <Footer></Footer>
      </div>
    </div>
  </div>
</template>
<script>
  import Header from "../components/Header";
  import Footer from "../components/Footer";
  import Nav from "../components/Nav";

  export default {
    name: "Index",
        data() {
          return {
            value: 5,
            tableData:[{}],
            currentPage:1, //初始页
            pageSize:5,    //每页的数据
          }
    },
    methods: {
      // 初始页currentPage、初始每页数据数pagesize和数据data
      handleSizeChange: function (size) {
        this.pagesize = size;
        console.log(this.pagesize)  //每页下拉显示数据
      },
      handleCurrentChange: function(currentPage){
        this.currentPage = currentPage;
        console.log(this.currentPage)  //点击第几页
      },
      /*查询所有课程*/
      findAll(){
        let _this = this
        this.$axios.get("http://localhost:8066/course/getCourse").then(function(res){
          _this.tableData = res.data
          console.log(res.data)
        }).catch(function (err) {
          alert('查询失败')
        })
      },
    },
    components: {
      Footer,
      Header,
      Nav
    },
    //初始化阶段 brforeCreate 内部事件 生命周期
    created(){
      this.findAll();
    }
  }
</script>

<style scoped>

  .f12 {
    font-size: 12px;
    font-family: 微软雅黑;
  }
  strong {
    font-weight: bold;
  }

  .gray1, a.gray1 {
    color: #666666 !important;
  }

  .gray2, a.gray2 {
    color: #A9A9A9 !important;
    font-size: 1px;
  }
  .mh_baoming_box .mh_rmkc_title {
    height: 34px;
    background-color: #F9F9F9;
    border-bottom: solid 1px #dddddd;
  }

  .mh_baoming_box .mh_rmkc_title span {
    font-size: 14px;
    font-weight: bold;
    line-height: 34px;
    color: #333;
    margin-left: 15px;
  }
  .mh_baoming_box .mh_rmkc dl {
    line-height: 22px;
    width: 175px;
    margin: 0 auto;
    margin-top: 10px;
  }
  .mh_baoming_box .mh_rmkc dl dt {
    margin-bottom: 7px;
  }

  .mh_baoming_box .mh_rmkc, .mh_baoming_box .mh_rmkc03 {
    width: 100%;
    border: solid 1px #dddddd;
    height: auto;
    margin-top: 10px;
  }

  .mh_baoming_box .mh_rmkc, .mh_baoming_box .mh_rmkc02 {
    padding-bottom: 20px;
  }

  .jg_xk .jg_xkhelp i {
    display: inline-block;
    background: url(../assets/bg4.png) no-repeat -87px -147px;
    width: 28px;
    height: 46px;
    margin: 7px 10px 0 50px;
    float: left;
  }


  .mh_baoming_box {
    float: right;
    width: 300px;
    margin-top: 20px;
  }

  .jg_xk .jg_xkhelp {
    display: inline-block;
    width: 100%;
    height: 60px;
    background: #43BCE9;
    color: #fff;
    line-height: 60px;
    font-size: 14px;
  }

  .orange, a.orange {
    color: #FF7300 !important;
  }

  .train_tab .wkg-sort1 .sortScreen .orgtab1, .train_tab .wkg-sort1 .sortScreen:hover .tab1 {
    background-position: 2px -36px;
  }

  .train_tab .wkg-sort1 .sortScreen .tab {
    /*background: url(../assets/bg4.png) no-repeat;*/
    width: 20px;
    height: 15px;
    display: inline-block;
    position: relative;
    top: 2px;
  }


  .train_tab .wkg-sort1 .sortScreen {
    cursor: pointer;
    margin-left: 10px;
  }

  .train_tab .wkg-sort1 {
    float: right;
    margin-right: 10px;
  }

  .train_tab {
    height: 35px;
    border: 1px solid #ddd;
    margin-top: 20px;
    line-height: 35px;
    font-size: 12px;
    color: #666;
    padding-left: 20px;
  }

  .train_tab .address, #search-list .train_tab > span, #search-list .train_tab > a, #search-list .train_tab > i {
    float: left;
  }

  .train_tab a {
    color: #666;
  }

  .train_tab .select {
    font-weight: bold;
    color: #FF7300;
  }

  .train_tab .address, #search-list .train_tab > span, #search-list .train_tab > a, #search-list .train_tab > i {
    float: left;
  }

  .train_tab > i {
    font-size: 12px;
    position: relative;
    top: -1px;
    color: #999;
    margin: 0 10px;
  }

  .wkg-filterTable {
    margin-top: -1px !important;
  }

  .wkg-filterTable dl.wkg-selected {
    border-top: 0 none;
  }

  .wkg-filterTable dl.wkg-selected dt {
    line-height: 21px;
  }

  .wkg-filterTable dl dt, .wkg-filterTable dl dd {
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .wkg-filterTable dl dt {
    color: #333;
    float: left;
    font-weight: bold;
    line-height: 22px;
    padding: 10px 0;
    text-align: right;
    width: 80px;
  }

  .wkg-filterTable dl.wkg-selected dd .clear {
    border: 1px solid #e7e7e7;
    color: #787878;
    padding: 1px 5px;
    height: 17px;
  }

  .wkg-filterTable dl.wkg-selected dd a, .wkg-filterTable dl.wkg-selected dd span {
    display: inline-block;
    vertical-align: top;
  }

  .wkg-filterTable dl {
    border-top: 1px dotted #d7d6d5;
  }

  .wkg-filterTable dl dt, .wkg-filterTable dl dd {
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .wkg-filterTable dl dt {
    color: #333;
    float: left;
    font-weight: bold;
    line-height: 22px;
    padding: 10px 0;
    text-align: right;
    width: 80px;
  }

  .wkg-filterTable dl dd .lists.auto {
    height: auto;
  }

  .wkg-filterTable dl dd .lists {
    overflow: hidden;
  }

  .wkg-filterTable dl dd table {
    width: 100%;
  }

  table {
    border-collapse: collapse;
    border-spacing: 0;
  }

  .wkg-filterTable dl dd table td {
    vertical-align: top;
  }


  element.style {
  }

  .wkg-filterTable dl dd .lists a:hover, .wkg-filterTable dl dd .lists a.current, .wkg-filterTable dl dd .lists a.scur {
    background: none repeat scroll 0 0 #FF7300;
    color: #fff !important;
  }

  .wkg-filterTable dl dd .lists a {
    display: inline-block;
    height: 16px;
    line-height: 16px;
    margin-bottom: 1px;
    margin-right: 18px;
    padding: 3px;
    text-decoration: none;
    vertical-align: top;
  }

  .wkg-cat-rb .toggle {
    height: 30px;
  }

  .wkg-cat-rb .toggle .bar {
    border: 1px solid #dddddd;
    border-top: 0px;
    height: 4px;
    overflow: hidden;
  }

  .trainMore {
    font-size: 1px;
    text-align: center;
    width: 1200px;
    background: #F5F5F5;
    padding: 12px 0;
    line-height: 37px;
    height: 36px;
    margin: 40px 0 10px;
  }

  .trainMore .more_a {
    display: inline-block;
    width: 160px;
    height: 36px;
    line-height: 35px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    background: #a9a9a9;
    border: 0;
    cursor: pointer;
    margin-left: 10px;
  }

  .none {
    display: none;
  }

  .trainClass .trainClass_div {
    font-size: 1px;
    line-height: 22px;
    margin-top: 10px;
  }

  .trainClass .trainC_title {
    border-bottom: 1px solid #ddd;
    color: #666;
    font-weight: bold;
    font-size: 14px;
    height: 35px;
    margin-top: 30px;
    line-height: 20px;
  }

  .mb40 {
    margin-bottom: 40px;
  }

  .trainClass .trainC_title {
    border-bottom: 1px solid #ddd;
    color: #666;
    font-weight: bold;
    font-size: 14px;
    height: 35px;
    margin-top: 30px;
    line-height: 20px;
  }

  .trainClass .trainClass_div {
    line-height: 22px;
    margin-top: 10px;
  }

  .trainClass .trainClass_div a {
    display: inline-block;
    margin-right: 20px;
    color: #666;
    font-size: 12px;
  }

  .wkg-filterTable dl dt, .wkg-filterTable dl dd {
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .clearfix {
    zoom: 1;
  }

  .b7 {
    font-size: 1px;
    border: 1px solid #ddd;
    border-top: 2px solid #FF7300;
    border-bottom: 0px;
  }


  .crumbs {
    line-height: 22px;
    margin-top: 10px;
    color: #999;
    font-size: 1px;
    margin-bottom: 10px;
  }

  .crumbs a {
    color: #999;
  }

  body a {
    outline: none;

  }

  .orange, a.orange {
    color: #FF7300 !important;
  }

  .crumbs i {
    margin: 0 5px;
  }

  a {
    text-decoration: none;
  }

  .w1200 {
    width: 1200px;
    margin: 0 auto;
  }

  .mt20 {
    margin-top: 20px;
  }

  body a {
    outline: none;
  }

  a {
    text-decoration: none;
    color: #666666;
  }

  a img, img {
    border: 0;
  }

  img {
    max-width: 100%;
  }
</style>
